<html ng-app> <!-- 定义整个angulajs使用的上下文环境 -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>AngulaJs</title>
    <script type="text/javascript" src="angular/angular.js"></script>
</head>
<body>
<div ng-init="msg='hello world'">
    请输入信息:<input type="text" name="msg" id="msg" ng-model="msg">
</div>
<div>
    <h1>{{msg}}</h1>
</div>
<br>
<div ng-init="book={title:'java',price:66.66}">
    <h1>书名: {{book.title}}</h1>
    <h1>价格: {{book.price}}</h1>
</div>
</body>
</html>
